# task 2

name = input("Enter your name: ")
age = input("Enter your age: ")

with open("userinfo.txt.", "a") as file:
    file.write(f"{name}: {age}\n")

print(name + " " + age)
